package com.dstz.demo.rest.controller;

import com.dstz.base.api.aop.annotion.CatchErr;
import com.dstz.base.api.response.impl.ResultMsg;
import com.dstz.base.rest.BaseController;
import com.dstz.demo.core.manager.XmprojectinfoManager;
import com.dstz.demo.core.model.Xmprojectinfo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


/**
 * 项目基本信息录入 控制器类<br/>
 * @author  aschs
 * </pre>
 */
@RestController
@RequestMapping("/sys/xmprojectinfo")
public class XmprojectinfoController extends BaseController<Xmprojectinfo>{
	@Resource
	XmprojectinfoManager xmprojectinfoManager;
	
	
	@Override
	protected String getModelDesc() {
		return "项目基本信息录入";
	}

	@PostMapping("/findinfo")
	@CatchErr(write2response = true,value = "查询信息失败")
	public ResultMsg findinfo(){
		List<Xmprojectinfo> list= xmprojectinfoManager.findinfo();
		return getSuccessResult(list);
	}
	   
}
